<?php

/**
 * @author Watanabex
 * @copyright 2011
 * Admins Handler Class
 */

require('dao/adminsDAO.php');

class adminsHandler{
	public static function getAll(){
		return  adminsDAO::getAll();
	}
	
	public static function getAdmin($iID){
		return adminsDAO::getAdmin($iID);
	}
	
	public static function addAdmin($sNombre, $sApellido_1, $sApellido_2, $sEmail, $sTelefono, $sLogin, $sPassword){		
		return adminsDAO::addAdmin($sNombre, $sApellido_1, $sApellido_2, $sEmail, $sTelefono, $sLogin, $sPassword);
	}
	
	public static function updateAdmin($sNombre, $sApellido_1, $sApellido_2, $sEmail, $sTelefono, $sLogin, $sPassword, $iID){
		return adminsDAO::updateAdmin($sNombre, $sApellido_1, $sApellido_2, $sEmail, $sTelefono, $sLogin, $sPassword, $iID);		
	}
	
	public static function deleteAdmin($iID){
		return adminsDAO::deleteAdmin($iID);
	}
	
}